package org.wu.framework.lazy.orm.core.persistence.conf;


import org.wu.framework.translation.data.schema.Structure;

import java.util.List;
import java.util.Map;

/**
 * describe : 弱关联的表结构
 *
 * @author : Jia wei Wu
 * @version 1.0
 * @date : 2022/1/17 8:11 下午
 */
public class LazyTableWeakStructure implements Structure<List<String>, List<Map<String/*column*/, Object/*value*/>>> {
    /**
     * 结构字段
     */
    private final List<String> schema;
    /**
     * 当前对象的属性数据
     */
    private final List<Map<String/*column*/, Object/*value*/>> payload;

    public LazyTableWeakStructure(List<String> schema, List<Map<String, Object>> payload) {
        this.schema = schema;
        this.payload = payload;
    }

    @Override
    public List<String> schema() {
        return schema;
    }

    @Override
    public List<Map<String/*column*/, Object/*value*/>> payload() {
        return payload;
    }
}
